home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_crosstrestle.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_CrossTrestle.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     entered
  13.     message     exited
  14.     
  15.     thing       player      local
  16.     thing       trest0
  17.     thing       trest1
  18.     
  19.     sector      sec_OnTop1  linkID=1
  20.     sector      sec_OnTop2  linkID=1
  21.     
  22.     int         onTop=0     local
  23.     
  24. end
  25.  
  26. # ========================================================================================
  27.  
  28. code
  29.  
  30. entered:
  31.  
  32.     player = GetLocalPlayerThing();
  33.     
  34.     if(GetSenderID() == 1)
  35.     {
  36.         onTop = 1;
  37.         
  38.         SetCollideType(trest0, 0);
  39.         SetCollideType(trest1, 0);
  40.     }
  41.         
  42.     return;
  43.  
  44. # ========================================================================================
  45.  
  46. exited:
  47.  
  48.     player = GetLocalPlayerThing();
  49.     
  50.     if((GetSenderID() == 1) && (GetSourceRef() == player))
  51.     {
  52.         onTop = 0;
  53.         
  54.         SetCollideType(trest0, 3);
  55.         SetCollideType(trest1, 3);
  56.     }
  57.  
  58.     return;
  59.     
  60. # ========================================================================================
  61.  
  62. end
  63.  
  64.